import { http } from './index'

// ###########################
//
// 职位等级
//
// ###########################

/**
 * 查询列表
 * @param {Object} params
 */
export function getRankList (params) {
  return http.post('/system/SysOccupationalLevel/list', params)
}

/**
 * 删除
 * @param {String} id
 */
export function deleteRank (id) {
  return http.get('/system/SysOccupationalLevel/del/' + id)
}

/**
 * 修改或保存
 * @param {Object} params
 */
export function saveOrUpdateRankInfo (data) {
  const url = '/system/SysOccupationalLevel/save'
  return http.post(url, data)
}

/**
 * 根据id返回信息
 * @param {String} id
 */
export function getRankInfoById (id) {
  return http.get('/system/SysOccupationalLevel/getById/' + id)
}

/**
 * 获取最大排序号，每个排序号 +5
 */
export function getOrderNo () {
  return http.get('/system/SysOccupationalLevel/getOrderNo')
}

export function getOccupLevelList () {
  return http.get('/system/SysOccupationalLevel/getOccupLevelList')
}